package com.scalar.forecast.forecastSetup.actionCommands;

import com.scalar.forecast.actionCommands.ActionCommand;
import com.scalar.forecast.commons.Constants;

/**
 * User: Sujan Kumar
 * Date: Feb 9, 2005
 * Time: 6:15:02 PM
 */
public class ForecastUserFieldsActionCommandFactory implements Constants
{
     public static ActionCommand getActionCommand( String action )
    {
        if ( ACTION_SAVE.equalsIgnoreCase( action ) )
        {
            return new ForecastUserFieldsSaveCommand();
        }

       if ( ACTION_NEW.equalsIgnoreCase( action ) )
        {
            return new ForecastUserFieldsNewCommand();
        }
        return null;
    }
}
